<!DOCTYPE html>
<html>
<?php
include_once '../model/produk.php';
?>
<head>
<title></title>
<link href="View/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="View/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link  href="View/bootstrap/js/bootstrap.min.js" rel="stylesheet"/>
<script type="text/javascript" src="View/bootstrap/js/jquery-latest.js"></script>
</head>
<body>
<div>
<pre><h4><center>Produk</center></h4></pre>
	<table class="table table-hover">
					<?php 
					$produk = new ModelProduk();
						$produk2 = $produk-> getProduk();
						if (!empty($produk2))
						{
							foreach ($produk2 as $id_produk => $produk2)
							{
								echo 
								'<tr>
									<td><a href="../index.php?produk='.$produk2->id_produk.'" class="btn" rel="tooltip" title="Detail"><i class="icon-arrow-right"></i></a></td>
									<td>'.$produk2->namaproduk.'</td>
								</tr>';
							}
						}
					?>
				</table>
</div>


</body>
</html>